
<template>
  <el-config-provider :locale="locale">
    <!-- <router-view /> -->
    <router-view v-slot="{ Component }">
      <transition name="slide-fade" mode="out-in">
        <component :is="Component" />
      </transition>
    </router-view>
  </el-config-provider>
</template>
<script setup lang="ts">
import { ref, provide, nextTick } from 'vue'
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import zhTw from "element-plus/lib/locale/lang/zh-tw";//繁体中文
import en from "element-plus/lib/locale/lang/en"
// Element Plus组件国际化
const locale = zhCn
</script>

<style>
html,
body {
  margin: 0;
  padding: 0;
  background: #f6f6f6;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  /* margin-top: 60px; */
  /* user-select: none; */
  box-sizing: border-box;
  overflow-x: hidden;
}
/* 过渡 */
.slide-fade-enter-active {
  transition: all .5s ease;
}
.slide-fade-leave-active {
  transition: all .5s ease
}
.slide-fade-enter,
.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
}
</style>
